package com.book.bookmanager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.book.bookmanager.pojo.Book;
import com.book.bookmanager.pojo.User;


import java.util.List;
import java.util.Map;
import java.util.Vector;

public interface userService extends IService<User> {
    public Map<String, Object> login(User user);

    //查询所有
    public List<User> queryAll();

    //添加数据
    public void add(User user);

    //根据用户名查询
    public User queryByUser(String userName);


    Map<String, Object> getUserInfo(String token);

    void loginOut(String token);

    Map<String, Object> register(User user);

    User removeByUser(String name);

    void addUser(User user);

    void updateUserById(User user);
}
